#include<iostream>
#include<map>
#include<string>
#include<algorithm>
#include<cctype>


using namespace std;
void word_count(std::map<std::string , int>& map_count){
    std::string word;
    while(std::cin >> word){
    for(auto& ch : word )
        ch = tolower(ch);
    
    word.erase(std::remove_if(word.begin(),word.end(),ispunct),word.end());
    
        ++map_count[word];
    }
    for(const auto& i : map_count)std::cout<<i.first<<" : "<<i.second<<"\n";

    
}

int main(){
    std::map<std::string,int> map_count;
    word_count(map_count);
    return 0;
}
